<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title >小强博客</title>
    <link  rel="stylesheet" type="text/css" href="__PUBLIC__/css/bootstrap.min.css" />
    <script type="text/javascript" src="__PUBLIC__/js/jquery-3.1.1.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/bootstrap.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/layer.js"></script>
</head>
<style>
    .navbar-inverse{
   border-radius: inherit;
    }
    .navbar nav li:hover{
        background-color: white;
    }
</style>
<body>
<nav class="navbar navbar-inverse">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header ">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Blog v1.0</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="<if condition=" CONTROLLER_NAME eq 'Index' ">active</if>"><a href="{:U('Index/index')}">
                <i class="glyphicon glyphicon-home">&nbsp;</i>首页  <span class="sr-only">(current)</span></a></li>
                <li  class="<if condition=" CONTROLLER_NAME eq 'Content' ">active</if>"><a href="{:U('Content/index')}">内容</a></li>
                <li class="<if condition=" CONTROLLER_NAME eq 'Tools' ">active</if>"><a href="{:U('Tools/index')}">功能</a></li>
                <li class="<if condition=" CONTROLLER_NAME eq '' ">active</if>"><a href="#">用户</a></li>

            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="__APP__"> 前台首页</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false"><span>您好 </span>&nbsp;{$_SESSION['blog_admin']['name']}</a>
                    <ul class="dropdown-menu">
                        <li><a href="{:U('Index/profile')}">管理档案 </a></li>
                        <li><a href="{:U('Index/quite')}">注销 </a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>